package com.sj.uabrowser.mvp.main.contract;

import com.sj.uabrowser.framework.BasePresenter;
import com.sj.uabrowser.framework.BaseView;
import com.sj.uabrowser.mvp.main.bean.News;

import java.util.List;
import java.util.TreeMap;

public interface NewsContract {

    interface Presenter extends BasePresenter{
        void fetchNews(TreeMap<String,Object>params);
    }

    interface View  extends BaseView<Presenter> {
        void showNews(List<News> newsList);
        void showErrors();
    }
}
